package com.stox.shared.model;

import com.stox.shared.model.Scrip;
import com.stox.shared.model.intf.HasScrip;

public class ScripWrapper implements HasScrip {

	private Scrip scrip;
	
	public ScripWrapper(Scrip scrip) {
		this.scrip = scrip;
	}
	
	@Override
	public Long getScripId() {
		return null == scrip ? null : scrip.getId();
	}
	
	@Override
	public Scrip getScrip() {
		return scrip;
	}
	
	@Override
	public void setScrip(Scrip scrip) {
		this.scrip = scrip;
	}

}
